package com.cloud.drore.eboss.supplier.mapper;

import com.cloud.drore.eboss.operation.entity.po.DistributorInfoPo;
import com.cloud.drore.eboss.operation.entity.po.DistributorsAllRelationPo;
import com.cloud.drore.eboss.operation.entity.vo.DistributorInfoVo;
import com.cloud.drore.eboss.operation.entity.vo.DistributorsAllRelationVo;
import com.cloud.drore.eboss.supplier.entity.po.SupplierAndDistributorRelationPo;
import com.cloud.drore.eboss.supplier.mapper.provider.SupplierRelationProvider;
import org.apache.ibatis.annotations.SelectProvider;

import java.util.List;

/**
 * 浙江卓锐科技股份有限公司 版权所有  Copyright 2018<br>
 *
 * @Description: <br>
 * @Project: eboos <br>
 * @CreateDate: Created in 2018/3/23 10:46 <br>
 * @Author: <a href="1451173193@qq.com">杨亮</a>
 */
public interface SuppliersRelationMapper {
    @SelectProvider(type = SupplierRelationProvider.class, method = "getAllDistributorBySupplierIdSql")
    List<SupplierAndDistributorRelationPo> getAllDistributorBySupplierId(Long supplierId);
    @SelectProvider(type = SupplierRelationProvider.class, method = "getDistributorInfoListBySupplierSql")
    List<DistributorInfoVo> getDistributorInfoListBySupplier(DistributorInfoPo vo);
    @SelectProvider(type = SupplierRelationProvider.class, method = "getDistributorsAllRelationSql")
    List<DistributorsAllRelationVo> getDistributorsAllRelation(DistributorsAllRelationPo po);
}
